//
//  FXEmoticon.swift
//  微博(Swift)
//
//  Created by V on 16/1/13.
//  Copyright © 2016年 V. All rights reserved.
//

import UIKit

class FXEmoticon: NSObject {
    /// 表情的描述
    var chs: String?
    /// 表情的图片名字
    var png: String?
    /// 表情类型，如果是图片表情，type 为 "0"，emoji 表情 type 为 "1"
    var type: String?
    /// emoji表情的字符串
    var code: String?
    
    /// 图片是放在哪个路径下边
    var path: String?
    /// 图片的全路径
    var fullPath: String {
        return "\(path!)/\(png!)"
    }

    init(dict: [String: AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
    }
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
    }
    
    override var description: String {
        let keys = ["chs","type","code"]
        return dictionaryWithValuesForKeys(keys).description
    }
}
